﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    public class Laberinto
    {
        Celda[,,] terreno;
        Celda goalUp;
        Celda goalDown;
        Celda goalLeft; 
        Celda goalRight;
        Celda goalFront;
        Celda goalBack;
        

        public Laberinto(int ancho, int profundo, int alto )
        {
            terreno = new Celda[ancho, profundo,alto];
            for (int i=0; i< ancho; i++)
            {
                for (int j = 0; j < profundo; j++)
                {
                    for (int k = 0; k < alto;k++ )
                        terreno[i, j,k] = new Celda(i, j, k);
                }
            }
        }

        #region Getters y Setters
        public Celda GoalUp
        {
            get { return goalUp; }
            set { goalUp = value; }
        }
        public Celda GoalDown
        {
            get { return goalDown; }
            set { goalDown = value; }
        }

        public Celda GoalLeft
        {
            get { return goalLeft; }
            set { goalLeft = value; }
        }
        public Celda GoalRight
        {
            get { return goalRight; }
            set { goalRight = value; }
        }
        public Celda GoalFront
        {
            get { return goalFront; }
            set { goalFront = value; }
        }
        public Celda GoalBack
        {
            get { return goalBack; }
            set { goalBack = value; }
        }
        public Celda[, ,] Terreno
        {
            get { return terreno; }
            set { terreno = value; }
        }
        #endregion

    }
}
